import 'package:flutter/material.dart';

/// 个人中心快捷数据显示
class ItemOptionWithCount extends StatelessWidget {
  final int? count;
  final String text;
  final String imagePath;

  const ItemOptionWithCount(
      {Key? key,
      required this.count,
      required this.text,
      required this.imagePath})
      : super(key: key);

  @override
  Widget build(BuildContext context) {
    return Container(
      height: 130,
      alignment: Alignment.center,
      child: Column(
        mainAxisSize: MainAxisSize.min,
        children: [
          // Text('$count',
          //     style: TextStyle(
          //         color: Theme.of(context).primaryColor, fontSize: 34)),
          Image.asset(
            imagePath,
            width: 35,
            height: 35,
          ),
          Container(
            margin: EdgeInsets.only(top: 5),
            child: Text(text),
          ),
        ],
      ),
    );
  }
}
